import {
    ELEMENT_TYPE_SORT_CONTAINER, ELEMENT_TYPE_HEADER_CONTAINER, ELEMENT_TYPE_FOOTER_CONTAINER,
} from '../element/Container';
const _container = [ELEMENT_TYPE_SORT_CONTAINER, ELEMENT_TYPE_HEADER_CONTAINER, ELEMENT_TYPE_FOOTER_CONTAINER];
// 验证是否是容器
export default function validateContainer(md) {
    return md && (md.getIn(['element', 'isContainer']) || _container.indexOf(md.getIn(['element', 'type'])) !== -1);
}
